package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {

    Page<Permission> findByCondition(String queryString);

    public void add(Permission permission);

    Set<Permission> findByRoleId(Integer roleId);

    public Permission findById(Integer id);

    public void update(Permission permission);

    public void delete(Integer id);

    List<Permission> findAllPermission();
}
